function bc = getcont(hfile)
% BVQXfile::getcont  - get content struct of object
%
% FORMAT:       content = getcont(obj);
%
% Input fields:
%
%       obj         valid, non-ROOT BVQXfile object
%
% Output fields:
%
%       content     1x1 struct with object's content

% Version:  v0.7b
% Build:    7082920
% Date:     Aug-29 2006, 10:22 PM CEST
% Author:   Jochen Weber, Brain Innovation, B.V., Maastricht, NL
% URL/Info: http://wiki.brainvoyager.com/BVQXtools

% argument check
if nargin ~= 1 || ...
    numel(hfile) ~= 1 || ...
   ~isBVQXfile(hfile, true)
    error( ...
        'BVQXfile:BadArgument', ...
        'Invalid object or mismatching fieldnames.' ...
    );
end

% get content
try
    bc = bvqxfile_getcont(hfile.L);
catch
    rethrow(lasterror);
end
